package com.jadefashion.service;

import com.jadefashion.health.entity.QueryPageBean;
import com.jadefashion.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService  {
    User findByUsername(String username);

    //用户数据查询
    Map queryPage(QueryPageBean queryPageBean);

    //    添加user
    void addUser(List<Integer> roleIds, User user);

    //删除user
    void deleteUserById(Integer id);

    //修改user
    void updateUser(User user);

    //    更新用户对应角色数据
    void updateRoleForUserByDetail(List<Integer> deleteIds, List<Integer> addIds, Integer currentRowId);

}
